import request from '@/utils/request'

// 查询危化品列表
export function listAfChemicals(query) {
  return request({
    url: '/security/afChemicals/list',
    method: 'get',
    params: query
  })
}

// 查询危化品详细
export function getAfChemicals(id) {
  return request({
    url: '/security/afChemicals/' + id,
    method: 'get'
  })
}

// 新增危化品
export function addAfChemicals(data) {
  return request({
    url: '/security/afChemicals',
    method: 'post',
    data: data
  })
}

// 修改危化品
export function updateAfChemicals(data) {
  return request({
    url: '/security/afChemicals',
    method: 'put',
    data: data
  })
}

// 删除危化品
export function delAfChemicals(id) {
  return request({
    url: '/security/afChemicals/' + id,
    method: 'delete'
  })
}
